<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <script src="https://cdn.staticfile.org/vue/3.2.36/vue.global.min.js"></script>
    <title>v-if 测试实例</title>
</head>

<body>
    <div id="app">
        <p v-if="seen">现在你看我了</p>
    </div>
    <script>
        const app = {
            data() {
                return {
                    seen: true /*改为false, 信息就无法显示*/
                }
            }
        } 
        Vue.createApp(app).mount('#app')
    </script>
</body>

</html>